class Check:

    def __init__(self, cls):
        self.cls = cls

    def __call__(self, *args, **kwargs):
        self.obj = self.cls(*args, **kwargs)
        return self

    def __getattr__(self, name):
        print(F"正在访问{name}")
        return getattr(self.obj, name)


@Check
class C:

    def say_hi(self):
        print("嗨～")

    def say_hey(self):
        print("嗯～")


c = C()
c.say_hi()
# 正在访问say_hi
# 嗨～

c.say_hey()
# 正在访问say_hey
# 嗯～
